<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head th:replace="layouts::header"></head>
<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container1">
    <form th:action="@{/courseSelection/save}" th:object="${courseSelection}" method="POST">
        <!--        <input type="hidden" th:field="${student.studentId}">-->
        <div class="box">
            <div class="form-group">
                <div>
                    <label class="a1">学生姓名</label>
                    <select class="form-control" th:field="*{students}" style="width: 230px">
                        <option th:each="association : ${aStudents}" th:value="${association.studentId}" th:text="${association.name}">
                        </option>
                    </select>
                </div>
            </div>
            <br>
            <div class="form-group">
                <label class="a1">课程信息</label>
                <div>

                    <select class="form-control" th:field="*{curriculum}" style="width: 230px">
                        <option th:each="class1 : ${aCurriculum}" th:value="${class1.curriculumId}" th:text="${class1.curriculumName}">
                        </option>
                    </select>
                </div>
            </div>
        </div>
        <div class="a2">
            <button class="btn btn-info" type="submit">选择完毕</button>
        </div>
    </form>
</div>

</body>
</html>